lcRPlanGetDist Home

Retrieves a point on a road plan curve, nearest to given off-curve point.

 BOOL lcRPlanGetDist (
   HANDLE hRPlan,
   double X,
   double Y,
   double* pX2,
   double* pY2,
   double* pDist,
   double* pOffset
 );

Parameters
hRPlan
  Handle to a road plan object.
X Y
  Off-curve point.
pX2 pY2
  Pointers to variables that will receive coordinates of the found on-curve point (which is nearest to X,Y)
pDist
  Pointer to variable that will receive the distance from beginning of road plan curve to found point.
pOffset
  Pointer to variable that will receive the distanve from given point (X,Y) to found point (X2,Y2).

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  Code sample,   lcRPlanGetPoint